package com.hongdee.rbac.roledata.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * Created by My on 2017-01-20.
 */

@Entity
@Table(name = "T_BC_ROLE_DATA_ORG")
public class TBcRoleDataOrg extends BaseEntity {

    //角色名称  role_id
    @Column(name = "role_id", length = 64, columnDefinition = " VARCHAR(64) COMMENT '角色名称' ")
    private String roleId;

    //角色类型 0部门权限，1人员权限  role_type
    @Column(name = "role_type", length = 1, columnDefinition = " VARCHAR(1) COMMENT '角色类型' ")
    private String roleType;

    //部门 ID，角色类型为0时有效
    @Column(name = "org_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '部门ID' ")
    private String orgId;

    //用户 ID，角色类型为1时有效
    @Column(name = "user_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '用户ID' ")
    private String userId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
